<html>
  <head>
  </head>
  <body>
    abljclkjdf
    <script>
      backend_url = 'http://dituapps.appspot.com/we';
      
      function getParamStr(paramObj){
        var paramArray = [];
        for (var i in paramObj) {
          if (i != "toJSONString" && paramObj[i] != null) {
            var paramToken = i + '=' + paramObj[i];
            paramArray.push(paramToken);
          }
        }
        return paramArray.join("&");
      }
      function request(param, callBackName){
        var paramStr = getParamStr(param);
        var url = backend_url + "?" + paramStr + "&random=" + Math.random();
        url += '&callback=' + callBackName;
        var api = param['api'];
        var scriptTag = document.createElement('script');
        scriptTag.setAttribute('type', 'text/javascript');
        scriptTag.setAttribute('charset', 'utf-8');
        scriptTag.setAttribute('id', 'jsonpScriptTag' + api);
        scriptTag.setAttribute('src', url);
        var oldTag = document.getElementById('jsonpScriptTag' + api);
        var head = document.getElementsByTagName('head')[0];
        if (oldTag) {
          head.removeChild(oldTag);
        }
        head.appendChild(scriptTag);
  //       var api = param.api;
  //       $h(api+"Sample.js");
  //       GLog.write(url);
      }
      var total = 0;
      function query(index, cont) {
        if(index != -1) {
          total ++;
          request({
            'index': index,
            'api': ""
          }, "query");
          index ++;
          var div = document.createElement("div");
          div.innerHTML = cont;
          document.body.appendChild(div);
        }
        else {
          document.body.innerHTML = cont;
        }
      }
      query(0)
      function start() {
        query(0);
      }
      setTimeout(start, 7200000); 
    </script>
  </body>
</html>
